package utils;

import java.io.IOException;
import java.util.Date;

import org.apache.log4j.FileAppender;
import org.apache.log4j.Logger;
import org.apache.log4j.SimpleLayout;

public class LoggingExample {

	private static final Logger LOGGER = Logger.getLogger(LoggingExample.class);
	
	public static void main(String[] args) {
		
		
		try {
			LOGGER.addAppender(new FileAppender(new SimpleLayout(), "testLog.log"));
			LOGGER.info( new Date() + " test");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		
	}
	
}
